package 创建型.工厂模式.Demo1;

public class SendFactoryTest {
  
    public static void main(String[] args) {  
       /* SendFactory factory = new SendFactory();
        Sender sender = factory.produce("sms");  
        sender.Send();*/

        /*SendFactory factory = new SendFactory();
        Sender sender = factory.produceMail();
        sender.Send();*/

        Sender sender = SendFactory.produceMail();
        sender.Send();
    }  
}

